const koa=require('koa');
const app=new koa();
const router=require('koa-router')();
const axios=require("axios");
router.get("/",async ctx=>{
    var url="https://douban.uieee.com/v2/movie/top250";
    var data=await axios.get(url);
    console.log(data)
    ctx.body="豆瓣top250"
})
router.get("/detail",async ctx=>{
    ctx.body="电影详情"
})
app.use(router.routes())
app.listen(8080)